# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2023年02月23日
"""

import docx
from docx.shared import Cm,Pt
from docx.enum.text import WD_PARAGRAPH_ALIGNMENT


myDocument=docx.Document('新员工.docx')
myTable=myDocument.tables[0]
for myRow in myTable.rows:
	for myCell in myRow.cells:
		if '投资' in myCell.text:
			myRow._element.getparent().remove(myRow._element)
			break



myDocument.save('02散文名篇.docx')


